package bai.myworld.pojo.dto.user;

import lombok.Data;
import jakarta.validation.constraints.*;
import org.hibernate.validator.constraints.Length;

@Data
public class LoginDTO {
    @NotBlank(message = "用户名不能为空")
    @Length(min = 2, max = 20)
    private String username;

    @NotBlank(message = "密码不能为空")
    @Length(min = 8, max = 20)
    private String password;

    private String captcha; // 验证码字段
    private String captchaKey; // 验证码UUID
}